import at.guigu.service.BrandService;
import org.junit.Test;

public class DeleteOne {
    //1 创建一个私有的BrandService对象
    private BrandService brandService = new BrandService();

    // 单条删除（删除一条数据（删除一个商品））
    @Test
    public void deleteSingle() {
        //接收前端传回的参数
        int id = 4;
        boolean f = brandService.deleteSingle(id);
        System.out.println(f);
    }
    // 批量删除
    @Test
    public void deleteByIds() {
        //接收前端传回的参数
        int[] ids = {2,3};
        boolean f = brandService.deleteByIds(ids);
        System.out.println(f);
    }

}
